import Blockly from 'blockly/core'
import 'blockly/python_compressed'
import 'blockly/blockly_compressed'
import 'blockly/blocks_compressed'

Blockly.Blocks.continue = {
  init: function () {
    this.appendDummyInput().appendField('continue')
    this.setPreviousStatement(true, null)
    this.setNextStatement(true, null)
    this.setColour(15)
    this.setTooltip('继续')
    this.setHelpUrl('')
  }
}

Blockly.Python.continue = function (block) {
  const code = 'continue\n'
  return code
}

export default Blockly
